﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ESAM_Assignment_3
{
    /// <summary>
    /// This class is to maintain commonly used constants to ensure all files will use the correct constant.
    /// Commonly used functions will also be declared in this class.
    /// The codes within this class is STRICTLY NOT to be modified. 
    /// </summary>
    public class Common
    {
        /// <summary>
        /// Constant varable to declare the name of the database used together with this web application.
        /// DO NOT change this name.
        /// </summary>
        public const string Database_Name = "ESAM_ASSIGNMENT";
        public const string ESAM_LOGIN = ".ESAM_LOGIN";
        public const string ESAM_ADMIN = ".ESAM_ADMIN";
        public const string ESAM_FULLNAME = ".ESAM_FULLNAME";
        

        /// <summary>
        /// Method to ensure that the date and time string inserted into the Comments table is in the correct format.
        /// </summary>
        /// <returns></returns>
        public static string InsertTodayIntoCommentsDate()
        {
            return  DateTime.Now.ToString("dd-MMM-yyyy HH:mm:ss");
        }

        
    }
}